<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Msanpham extends CI_Model{
    public function __construct() {
        parent::__construct();
        $this->load->database();
    }
    public function listsanpham(){
        $query=  $this->db->query("select * from products");
        $data=  $query->result_array();
        echo "<pre>";
        print_r($data);
        echo "</pre>";
    }
}
?>
